package com.test.mapper;

import com.test.pojo.DinnerTable;
import com.test.pojo.TableStatus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DinnerTableMapper {

    List<DinnerTable> getAllDinnerTable();

    int updateDinnerTable(DinnerTable dinnerTable);

    int deleteDinnerTable(@Param("tableId") int tableId);

    int addDinnerTable(DinnerTable dinnerTable);

    List<DinnerTable> serachDinnerTable(@Param("tableName") String tableName);
//
//    DinnerTable getFoodTypeByID(@Param("tableId") int tableId);
    /**
     * 主键查询
     */
    DinnerTable findById(@Param("tableId") int tableId);

    /**
     * 根据预定状态查询
     */
//    int findByStatus(@Param("tableStatus") int tableStatus);




}
